package com.oig.base.api;


import com.oig.base.api.factory.AreaServiceFallBackFactory;
import com.oig.sys.base.vo.AreaVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(contextId="areaService",value="sys-base-server",path="/area",fallbackFactory= AreaServiceFallBackFactory.class)
public interface AreaService {


    //@Operation(summary = "查询行政区划,根据名称查询")
    @PostMapping(value = "/findAreaByName/{name}")
    AreaVo findAreaByName(@PathVariable("name")String name);


}
